﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="adm_stats_images.aspx.cs" Inherits="Admin_adm_stats_images" Title="Untitled Page" %>

<%@ Register src="UserControls/AdminPaging.ascx" tagname="AdminPaging" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<style type='text/css'>
    .myShowAvatar{ display:block; text-align:center;}
    .myHideAvatar{ display:none; text-align:center;}
</style>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
		<!-- Header page-->
			<tbody><tr><td height="10">&nbsp;</td></tr>		
			<tr>
			  <td class="padLeft"><h3>Image Statistics Report</h3></td>
			</tr>
			<tr><td height="10" class="padLeft"><br/>
                <asp:Literal ID="ltrWellcome" runat="server"></asp:Literal>
                <br/><br/></td></tr>			
		<!-- /Header page-->		
			<tr>
				<td class="padLeft">
				<form method="post" name="frm">
				<input type="hidden" value="3" name="DocType"/><table width="100%" cellspacing="0" cellpadding="0" border="0">
						<tbody><tr> 
							<td>
								<table cellspacing="0" cellpadding="0" border="0">
								<tbody><tr>
									<td>Period:&nbsp;</td>
									<td>
										<asp:DropDownList ID="ddlPeriodYear" runat="server" CssClass="frmSort" 
                                            Width="100px">
                                        </asp:DropDownList>
                                        &nbsp;</td>
									<td>
									    <asp:DropDownList ID="ddlPeriodMonth" runat="server" CssClass="frmSort" 
                                            Width="100px">
                                            <asp:ListItem Value="01">January</asp:ListItem>
                                            <asp:ListItem Value="02">February</asp:ListItem>
                                            <asp:ListItem Value="03">March</asp:ListItem>
                                            <asp:ListItem Value="04">April</asp:ListItem>
                                            <asp:ListItem Value="05">May</asp:ListItem>
                                            <asp:ListItem Value="06">June</asp:ListItem>
                                            <asp:ListItem Value="07">July</asp:ListItem>
                                            <asp:ListItem Value="08">August</asp:ListItem>
                                            <asp:ListItem Value="09">September</asp:ListItem>
                                            <asp:ListItem Value="10">October</asp:ListItem>
                                            <asp:ListItem Value="11">November</asp:ListItem>
                                            <asp:ListItem Value="12">December</asp:ListItem>
                                        </asp:DropDownList>
                                        &nbsp;</td>
									<td><img height="1" width="50" src="../hinh-thoi-trang/de_clear.gif"/></td>
									<td>Ranked By:&nbsp;</td>
									<td><asp:DropDownList ID="ddlSortBy" runat="server" CssClass="frmSort" 
                                            Width="100px">
                                        <asp:ListItem>Score</asp:ListItem>
                                        <asp:ListItem Value="S.Rated">Number of rating</asp:ListItem>
                                        <asp:ListItem Value="S.RatingAvg">Rating average</asp:ListItem>
                                        <asp:ListItem Value="S.Emailed">Number of email</asp:ListItem>
                                        <asp:ListItem Value="S.SavedLike">Number of saved like</asp:ListItem>
                                        <asp:ListItem Value="S.SavedBuy">Number of saved buy</asp:ListItem>
                                        <asp:ListItem Value="SaveTotal">Total saved</asp:ListItem>
                                        </asp:DropDownList>
									</td>
									<td>&nbsp;&nbsp;Top<asp:TextBox ID="txtSelectTop" runat="server" CssClass="frmSort" 
                                            Width="100px">50</asp:TextBox>
                                        &nbsp;</td>
									<td valign="top">
                                        <asp:Button ID="btnGo" runat="server" CssClass="btnGo" Text="Go" 
                                            onclick="btnGo_Click" />
                                    </td>
								</tr>
								<tr>
									<td>From:&nbsp;</td>
									<td><asp:DropDownList ID="ddlFromYear" runat="server" CssClass="frmSort" 
                                            Width="100px">
                                        </asp:DropDownList>
									</td>
									<td><asp:DropDownList ID="ddlFromMonth" runat="server" CssClass="frmSort" 
                                            Width="100px">
									        <asp:ListItem Value=""></asp:ListItem>
									        <asp:ListItem Value="01">January</asp:ListItem>
                                            <asp:ListItem Value="02">February</asp:ListItem>
                                            <asp:ListItem Value="03">March</asp:ListItem>
                                            <asp:ListItem Value="04">April</asp:ListItem>
                                            <asp:ListItem Value="05">May</asp:ListItem>
                                            <asp:ListItem Value="06">June</asp:ListItem>
                                            <asp:ListItem Value="07">July</asp:ListItem>
                                            <asp:ListItem Value="08">August</asp:ListItem>
                                            <asp:ListItem Value="09">September</asp:ListItem>
                                            <asp:ListItem Value="10">October</asp:ListItem>
                                            <asp:ListItem Value="11">November</asp:ListItem>
                                            <asp:ListItem Value="12">December</asp:ListItem>
                                        </asp:DropDownList>
									</td>		
									<td><img height="1" width="50" src="../hinh-thoi-trang/de_clear.gif"/></td>							
									<td>Order:&nbsp;</td>
									<td colspan="3">
                                        <asp:DropDownList ID="ddlOrderBy" runat="server" CssClass="frmSort" 
                                            Width="100px">
                                            <asp:ListItem Value="Desc">Top</asp:ListItem>
                                            <asp:ListItem Value="Asc">Bottom</asp:ListItem>
                                        </asp:DropDownList>
                                        &nbsp;</td>										
								</tr>		
								</tbody></table>
							</td>
						</tr>	
						<tr><td style="height: 10px;">&nbsp;</td></tr>						
						<tr><td style="height: 10px;">&nbsp;</td></tr>						
						<tr><td>
							<table width="100%" cellspacing="0" cellpadding="0" border="0">
								
									<tbody><tr><td class="BorderH" colspan="5">&nbsp;</td></tr>
									<tr>
										<td colspan="5">
<!--Paging -->
<table width="100%" cellspacing="0" cellpadding="0" border="0">	
	<tbody><tr><td><img height="6" width="1" border="0" alt="" src="../hinh-thoi-trang/de_clear.gif"/></td></tr>		
	<tr>
		<td width="100" class="small">
            <asp:Literal ID="ltrCurrentPage" runat="server" Visible="False"></asp:Literal>
        </td>
		<td><img height="1" width="1" border="0" src="../hinh-thoi-trang/de_clear.gif"/></td>
		<td width="100" class="small">
            <asp:Literal ID="ltrTotalRecords" runat="server" Visible="False"></asp:Literal>
        </td>		
		<td align="right">
			<asp:Literal ID="ltrPaging" runat="server"></asp:Literal>
		</td>												
	</tr>	
	<tr><td><img height="6" width="1" border="0" alt="" src="../hinh-thoi-trang/de_clear.gif"/><uc1:AdminPaging 
            ID="AdminPaging1" runat="server" />
        </td></tr>																			
</tbody></table>	

										</td>
									</tr>		
									<tr>
										<td colspan="5">
											<asp:DataList ID="dtlImage" runat="server" RepeatColumns="2" 
                                                RepeatDirection="Horizontal" Width="500px"
                                                 HorizontalAlign="Center" >
											    <ItemTemplate>
											    <table>
											    <tr>
											        <td>&nbsp;</td>
											        <td>
											            <div style="padding: 5px;  text-align: center; background-color: rgb(124, 103, 135);" >
											            <div class='<%= VisiblePanel("1") %>'>
											                        <a target="_blank" class="DetailAction" href="../detail.aspx?aid=<%# Eval("AID") %>">
											            <img border="0" style=" width:250px; height:auto;" src='../<%# DetailImage(Eval("AID"), Eval("kTitle"), Eval("fYear"), Eval("ImageNo"))%>' />											        
											            </a>
														    <table   cellspacing="0" cellpadding="0" border="0" width="100%">
														
														        <tr>
															        <td rowspan="2" class="StatTDRank"><%# Eval("ID") %></td>
															        <td class="StatTD">VW</td>
															        <td class="StatTD">RT</td>
															        <td class="StatTD">RTA</td>
															        <td class="StatTD">EM</td>
															        <td class="StatTD">ST</td>
															        <td class="StatTD">SL</td>
															        <td class="StatTD">SB</td>
															        <td class="StatTDScore">Score</td>
														        </tr>
														        <tr>
															        <td class="StatTD"><%# Eval("Viewed")%></td>															
															        <td class="StatTD"><%# Eval("Rated")%></td>
															        <td class="StatTD"><%# Eval("RatingAvg")%></td>
															        <td class="StatTD"><%# Eval("Emailed")%></td>
															        <td class="StatTDSaved"><%# Eval("SaveTotal")%></td>
															        <td style="color: rgb(255, 141, 26);" class="StatTDSaved"><%# Eval("SavedLike")%></td>
															        <td style="color: rgb(255, 78, 78);" class="StatTDSaved"><%# Eval("SavedBuy")%></td>
															        <td style="font-weight: bold;" class="StatTDScore"><%# Eval("Score")%></td>
														        </tr>
														    </table>
											            </div>
											            <div class='<%= VisiblePanel("5") %>'>
														            <a target="_blank" class="DetailAction" href="../detail.aspx?aid=<%# Eval("AID") %>">
											            <img border="0" style=" width:100px; height:100px;" src='../<%# DetailImage(Eval("AID"), Eval("kTitle"), Eval("fYear"), Eval("ImageNo"))%>' />											        
											            </a>
											            
														    <table cellspacing="0" cellpadding="0" border="0" style="width:110px;" >												       
														        <tr>
															        <td rowspan="2" class="StatTDRank" ><%# Eval("ID") %></td>
															        <td class="StatTD" >DL</td>
															      
															        <td class="StatTDScore">Score</td>
														        </tr>
														        <tr>
															        <td class="StatTD" ><%# Eval("Downloaded")%></td>															
															        <td style="font-weight: bold;" class="StatTDScore"><%# Eval("Score")%></td>
														        </tr>
														    </table>
														</div>
														    
													    <div class='<%= VisiblePanel("4") %>'>
											                        <a target="_blank" class="DetailAction" href="../detail.aspx?aid=<%# Eval("AID") %>">
											            <img border="0" style=" width:250px; height:auto;" src='../<%# DetailImage(Eval("AID"), Eval("kTitle"), Eval("fYear"), Eval("ImageNo"))%>' />											        
											            </a>
														    <table   cellspacing="0" cellpadding="0" border="0" width="100%">
														
														        <tr>
															        <td rowspan="2" class="StatTDRank"><%# Eval("ID") %></td>
															        
															        <td class="StatTD">EM</td>
															        <td class="StatTD">DL</td>
															        <td class="StatTDScore">Score</td>
														        </tr>
														        <tr>
															        <td class="StatTD"><%# Eval("Emailed")%></td>
															        <td class="StatTDSaved"><%# Eval("Downloaded")%></td>
															        
															        <td style="font-weight: bold;" class="StatTDScore"><%# Eval("Score")%></td>
														        </tr>
														    </table>
											            </div>
													    </div>
													</td>
											        <td>&nbsp;</td>
											    </tr>
											    </table>
											    </ItemTemplate>
                                            </asp:DataList>
										</td>
									</tr>																	
									<tr>
										<td colspan="5">
                                            <br/>
										</td>
									</tr>							
															
							</tbody></table>
						</td></tr>																		
					</tbody></table>
				</form>		
				</td>
		  </tr>	
		</tbody></table>
</asp:Content>

